﻿// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  MockExchangeSession.cs
//    
// Abstract:
//
//  Implements IExchangeSession to faciliate unit testing
//  
//--

using Microsoft.Office.Interop.Outlook;

namespace Microsoft.EnhancedReminders.OutlookAddIn.UnitTests
{
    /// <summary>
    /// Implements IExchangeSession to faciliate unit testing
    /// </summary>
    public sealed class MockExchangeSession : IExchangeSession
    {
        private OlExchangeConnectionMode _connectionMode;

        /// <summary>
        /// Initializes connection mode for unit testing
        /// </summary>
        /// <param name="connectionMode"></param>
        public MockExchangeSession(OlExchangeConnectionMode connectionMode)
        {
            _connectionMode = connectionMode;
        }

        #region IExchangeSession Members

        OlExchangeConnectionMode IExchangeSession.ConnectionMode
        {
            get
            {
                return _connectionMode;
            }
        }

        #endregion
    }
}